﻿using System.Collections.Generic;

namespace Hx.ADSyncPlatform.Infrastructure.Tree
{
    public class BaseTreeNode : ITreeNode
    {
        public object Id { get; set; }
        public object ParentId { get; set; }


        public List<ITreeNode> Children { get; set; }

        public int Depth { get; set; }
        public string Name { get; set; }

        public void AddChildren(ITreeNode node)
        {
            if (Children == null)
                Children = new List<ITreeNode>();
            this.Children.Add(node);
        }
    }
}
